<?php

if (isset($id3))
    echo $this->Form->input('AddressBookField.city_id', array('label' => false, 'div' => false, 'class' => 'required', 'selected' => $id3, 'id' => 'AddressBookFieldCityId_' . $id2,'style'=>'width:185px'));
elseif (!isset($id3) && isset($id2))
    echo $this->Form->input('AddressBookField.city_id', array('label' => false, 'div' => false, 'class' => 'required','id' => 'AddressBookFieldCityId_'.$id2,'style'=>'width:185px'));
else
    echo $this->Form->input('AddressBookField.city_id', array('label' => false, 'div' => false, 'class' => 'required','style'=>'width:185px'));
?>